package com.yunyike.app.data.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunyike.app.data.mapper.ShopperMapper;
import com.yunyike.app.data.model.Shopper;
import com.yunyike.app.data.service.IShopperService;

@Service("shopperServiceImpl")
public class ShopperServiceImpl implements IShopperService{

	private static Logger log = LoggerFactory.getLogger(ShopperServiceImpl.class);

	@Autowired
	private ShopperMapper shopperMapper;

	@Override
	public Shopper findShopperById(String shopperId) {
		return shopperMapper.selectByPrimaryKey(shopperId);
	}

	@Override
	public Shopper shopperLogon(String shopperName, String shopperPassword) {
		return shopperMapper.shopperLogon(shopperName, shopperPassword);
	}

	

}
